import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

class IndexedStackDemo extends StatelessWidget{
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('IndexedStack'),
        centerTitle: true,
      ),
      body: Container(
        color: Colors.yellow,
        child: IndexedStack(
          index: 1,
          alignment: Alignment(0.6,0.6),
          children: [
            CircleAvatar(
              backgroundImage: AssetImage('images/card01.png'),
              radius: 100,
            ),
            Container(
              decoration: BoxDecoration(
                color: Colors.black54
              ),
              child: Text('A',style: TextStyle(
                fontSize: 20,fontWeight: FontWeight.bold,color: Colors.white
              ),),
            ),

          ],
        ),
      ),
    );
  }
}